#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

void bubu(int arr[], int N)
{
	for (int i = 0; i < N; i++)
	{
		for (int j = 0; j < N - 1 - i; j++)
		{
			if (arr[j] < arr[j + 1])
			{
				int tol = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = tol;
			}
		}
	
	}
}

int main()
{
	srand((unsigned int)time(NULL));
	int arr[20];
	int N = 20;
	for (int i = 0; i < N; i++)
	{
		arr[i] = rand()%90+10;
	}
	bubu(arr, N);
	for (int j = 0; j < N; j++)
	{
		printf("%d  ", arr[j]);
	}
	return 0;
}